
/* Taken from http://tanny.ica.com/ica/tko/tkoblog.nsf/ : Tanny O'Haley's*/ 

/** JavaScript **/
ieHover = function() {
  var ieULs = document.getElementById('nav').getElementsByTagName('ul');
  /** IE script to cover <select> elements with <iframe>s **/
  for (j=0; j<ieULs.length; j++) {
    ieULs[j].innerHTML = ('<iframe src="about:blank" scrolling="no" frameborder="0"></iframe>' + ieULs[j].innerHTML);
    var ieMat = ieULs[j].firstChild;
    ieMat.style.width=ieULs[j].offsetWidth+"px";
    ieMat.style.height=ieULs[j].offsetHeight+"px";	
    ieULs[j].style.zIndex="99";
  }
  /** IE script to change class on mouseover **/
  var ieLIs = document.getElementById('nav').getElementsByTagName('li');
  for (var i=0; i<ieLIs.length; i++) if (ieLIs[i]) {
    ieLIs[i].onmouseover=function() {this.className+=" iehover";}
    ieLIs[i].onmouseout=function() {this.className=this.className.replace(' iehover', '');}
  }}
 
/** end **/

function CT_hide_menu(menu) { 
  var li=document.getElementById("li_"+menu);
  if(li) {
    li.style.visibility="hidden";
    //li.style.display="none";
  }
  var ul=document.getElementById("ul_"+menu);
  if(ul) {
    ul.style.visibility="hidden";
    //ul.style.display="none";
  }  
}

function CT_show_menu(menu) { 
  var li=document.getElementById("li_"+menu);
  if(li) {
    //li.style.display="compact";
    li.style.visibility="visible";
  }  
  var ul=document.getElementById("ul_"+menu);
  if(ul) {
    //ul.style.display="compact";
    ul.style.visibility="visible";
  }  
}
